import request from '@/utils/request'
import { adminUrl } from "@/utils/baseUrl.js";
// 创建教师评价
export function createTeacherEvaluation(data) {
  return request({
    url: adminUrl + '/study/teacher-evaluation/create',
    method: 'post',
    data: data
  })
}

// 更新教师评价
export function updateTeacherEvaluation(data) {
  return request({
    url: adminUrl + '/study/teacher-evaluation/update',
    method: 'put',
    data: data
  })
}

// 删除教师评价
export function deleteTeacherEvaluation(id) {
  return request({
    url: adminUrl + '/study/teacher-evaluation/delete?id=' + id,
    method: 'delete'
  })
}

// 获得教师评价
export function getTeacherEvaluation(id) {
  return request({
    url: adminUrl + '/study/teacher-evaluation/get?id=' + id,
    method: 'get'
  })
}

// 获得教师评价分页
export function getTeacherEvaluationPage(query) {
  return request({
    url: adminUrl + '/study/teacher-evaluation/page',
    method: 'get',
    params: query
  })
}

// 导出教师评价 Excel
export function exportTeacherEvaluationExcel(query) {
  return request({
    url: adminUrl + '/study/teacher-evaluation/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}



// 获取学院列表
export function getEvaluationCollegesList() {
  return request({
    url: adminUrl + '/study/teacher-evaluation/colleges',
    method: 'get'
  })
}


// 获取班级列表
export function getEvaluationClassesList() {
  return request({
    url: adminUrl + '/study/teacher-evaluation/classes',
    method: 'get'
  })
}
